//
//  StrategyPagesParser.m
//  ITrip
//
//  Created by dllo on 15/5/30.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategyPagesParser.h"

@implementation StrategyPagesParser

- (void)dealloc
{
    [self.strategy_title release];
    [super dealloc];
}

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.children = [NSMutableArray array];
        self.strategy_id = [dic[@"id"]integerValue];
        self.strategy_title = dic[@"title"];
//        NSLog(@"%@", self.strategy_title);
        NSArray *array = dic[@"children"];
        for (NSDictionary *dic in array) {
            StrategyChildernParser *parser = [[StrategyChildernParser alloc]init:dic];
            [self.children addObject:parser];
//            NSLog(@"%@", self.strategy_title);
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}


@end
